Skip to content

[Fuzzing] Skip JS snippets in errors - #9423

Open
tlively wants to merge 1 commit into
mainfrom
fuzz-opt-js-error-snippet
Open

tlively wants to merge 1 commit into
mainfrom
fuzz-opt-js-error-snippet

Conversation

@tlively

@tlively tlively commented Nov 24, 2026

Copy link
Copy Markdown
Member

When V8 reports an uncaught RuntimeError or TypeError whose location resolves to a JS frame (for example when --tail-call pops a Wasm wrapper frame beneath an anonymous JS builtin such as configureAll), d8 prints the JS source line and caret indicator immediately after the ":: : ..." header line.

PreserveImportsExportsJS.do_run previously replaced error lines with "TRAP" and ignored " at ..." stack frames and blank lines, but left the two-line JS source snippet and caret in the normalized output, causing false-positive comparison mismatches against runs where the error was attributed to a Wasm frame without a source snippet.

Skip the following two lines when a RuntimeError or TypeError header has a numeric JS line location and the line after the snippet is a caret line.

When V8 reports an uncaught RuntimeError or TypeError whose location resolves to a JS frame (for example when --tail-call pops a Wasm wrapper frame beneath an anonymous JS builtin such as configureAll), d8 prints the JS source line and caret indicator immediately after the "<file>:<line>: <Error>: ..." header line.

PreserveImportsExportsJS.do_run previously replaced error lines with "TRAP" and ignored "    at ..." stack frames and blank lines, but left the two-line JS source snippet and caret in the normalized output, causing false-positive comparison mismatches against runs where the error was attributed to a Wasm frame without a source snippet.

Skip the following two lines when a RuntimeError or TypeError header has a numeric JS line location and the line after the snippet is a caret line.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant